package org.jsbd.boss.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.jsbd.boss.common.ResponseUtils;
import org.jsbd.boss.domian.BaseInfo;
import org.jsbd.boss.service.impl.BaseConfigService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/income")
public class IncomeConfigController {
	public static final Logger LOGGER = LoggerFactory.getLogger(IncomeConfigController.class);

	@Autowired
	private BaseConfigService baseConfigService;
	
	@ResponseBody
	@RequestMapping(value = "/save")
	public void saveConfig(String mark,String income,String date, HttpServletResponse response,
			HttpServletRequest request) {
		//TODO 保存或者更新 mark的新增数据
		
		ResponseUtils.responseSuccess(response);
	}
	
	@ResponseBody
	@RequestMapping(value = "/query", method = RequestMethod.POST)
	public void queryConfig(BaseInfo baseInfo, HttpServletResponse response,
			HttpServletRequest request) {
		//TODO 查询
		
		ResponseUtils.responseSuccess(response);
	}
}
